package info.motteke.qjdbc.column.filter;

import info.motteke.qjdbc.column.variable.Variable;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public abstract class MultiArgumentsFilter extends Filter {
    private final List<Variable> vars;

    protected MultiArgumentsFilter(Variable... vars) {
        this.vars = Collections.unmodifiableList(Arrays.asList(vars));
    }

    public static abstract class MultiArgumentFilterBridge {
        private final MultiArgumentsFilter filter;

        protected MultiArgumentFilterBridge(MultiArgumentsFilter filter){
            this.filter = filter;
        }

        protected List<Variable> getVariables() {
            return filter.vars;
        }
    }
}
